<?xml version="1.0" encoding="UTF-8"?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN" 
"http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
<html xmlns="http://www.w3.org/1999/xhtml"
	xmlns:ui="http://java.sun.com/jsf/facelets"
	xmlns:f="http://java.sun.com/jsf/core"
	xmlns:h="http://java.sun.com/jsf/html"
	xmlns:p="http://primefaces.org/ui">
<body>
	<ui:composition>
		<p:dataTable var="user" value="#{dtUserLazyView.lazyModel}"
			paginator="true" rows="10"
			paginatorTemplate="{RowsPerPageDropdown} {FirstPageLink} {PreviousPageLink} {CurrentPageReport} {NextPageLink} {LastPageLink}"
			rowsPerPageTemplate="5,10,15"  selectionMode="single"
			selection="#{dtUserLazyView.selectedItem}" id="userItemTable" lazy="true">
			<p:ajax event="rowSelect"
				listener="#{dtUserLazyView.onRowSelect}"
				update=":tview2:formDlg:userItemDetail :tview2:formDlg2:userPasswordDetail" oncomplete="PF('userItemDialog').show()" />
			<p:column headerText="Email/Login" sortBy="#{user.id}" filterBy="#{user.id}">
				<h:outputText value="#{user.id}" />
			</p:column>
			<p:column headerText="First Name" sortBy="#{user.firstName}"
				filterBy="#{user.firstName}">
				<h:outputText value="#{user.firstName}" />
			</p:column>
			<p:column headerText="Last Name" sortBy="#{user.lastName}"
				filterBy="#{user.lastName}">
				<h:outputText value="#{user.lastName}" />
			</p:column>
		</p:dataTable>

	</ui:composition>
</body>
</html>